<?php
namespace app\admin\controller;
use think\Controller;
use\think\Db;
class Student extends Controller
{
     public function index(){
		 //调用模型层实现业务逻辑
		 $students=Db::name("student")->select();
		 $this->assign("students",$students);
		 //dump($users);
		 //exit;
		 //调用视图层,从模型层获取的数据显示出来
		 return $this->fetch();
	 }
}
